roundedbox: Remove _gtk_rounded_box_move()
authorBenjamin Otte <otte@redhat.com>
Tue, 13 Dec 2016 19:51:57 +0000 (20:51 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 20 Dec 2016 17:01:10 +0000 (18:01 +0100)
Use gsk_rounded_rect_offset() instead.

gtk/gtkcssshadowvalue.c
gtk/gtkroundedbox.c
gtk/gtkroundedboxprivate.h

index 32021d4326c253f2dcf377c258cd229d468fc3d1..fa68e855ec93486c2d91cadf2eec3ea7a9f71707 100644 (file)
@@ -930,7 +930,7 @@ _gtk_css_shadow_value_paint_box (const GtkCssValue   *shadow,
     }
 
   box = *padding_box;
-  _gtk_rounded_box_move (&box, x, y);
+  gsk_rounded_rect_offset (&box, x, y);
 
   if (shadow->inset)
     _gtk_rounded_box_shrink (&box, spread, spread, spread, spread);
index adcced91ad2d92d0b19fdbb122c25dab86b91859..8231db45a02232e548b174eb2e49e3f3fcd27c44 100644 (file)
@@ -213,15 +213,6 @@ _gtk_rounded_box_shrink (GskRoundedRect *box,
   _gtk_rounded_box_grow (box, -top, -right, -bottom, -left);
 }
 
-void
-_gtk_rounded_box_move (GskRoundedRect *box,
-                       double          dx,
-                       double          dy)
-{
-  box->bounds.origin.x += dx;
-  box->bounds.origin.y += dy;
-}
-
 typedef struct {
   double angle1;
   double angle2;
index e3384cf8c4bbc9e1f4ae2e84bb03e01871415750..f4a09101273ed408b659b91bf6efaa01ec491609 100644 (file)
@@ -52,9 +52,6 @@ void            _gtk_rounded_box_shrink                         (GskRoundedRect
                                                                  double                  right,
                                                                  double                  bottom,
                                                                  double                  left);
-void            _gtk_rounded_box_move                           (GskRoundedRect         *box,
-                                                                 double                  dx,
-                                                                 double                  dy);
 
 double          _gtk_rounded_box_guess_length                   (const GskRoundedRect   *box,
                                                                  GtkCssSide              side);